package model

import "gorm.io/gorm"

type Supplier struct {
	gorm.Model
	SupplierName     string `gorm:"type:varchar(256);not null;comment:'供应商名称'"`
	SupplierLevel    int    `gorm:"type:int(10);not null;comment:'供应商级别:'1:A 2:B 3:C 4:D'"`
	Contacts         string `gorm:"type:varchar(20);not null;comment:'联系人'"`
	ContactsPhone    string `gorm:"type:varchar(11);not null;comment:'联系人电话'"`
	ContactsEmail    string `gorm:"type:varchar(20);not null;comment:'联系人邮箱'"`
	ContactsPosition string `gorm:"type:varchar(20);not null;comment:'联系人职位'"`
	Address          string `gorm:"type:varchar(100);not null;comment:'地区'"`
	ShowAddress      string `gorm:"type:varchar(100);not null;comment:'详细地址'"`
	Notes            string `gorm:"type:varchar(255);not null;comment:'备注'"`
}
